export default {
  labelWidth: '150px',
  actions: [
    { type: 'primary', label: '提交', event: 'onSubmit' },
    { type: '', label: '重置', event: 'onReset' },
  ],
  fields: [
    {
      type: 'el-input',
      label: '姓名',
      prop: 'name',
      width: '400px',
    },
    {
      type: 'el-input',
      label: '部门',
      prop: 'position',
      width: '400px',
    },
    {
      type: 'el-input',
      label: '科室',
      prop: 'office',
      width: '400px',
    },
    {
      type: 'el-input',
      label: '工号',
      prop: 'workno',
      width: '400px',
    },
    {
      type: 'el-radio-group',
      required: true,
      label: '工作地',
      prop: 'workdi',
      options: [
        { label: '上海', value: 1 },
        { label: '武汉', value: 2 }
      ]
    },
    {
      type: 'el-checkbox-group',
      default: [],
      required: true,
      label: '领取证件类型',
      prop: 'ctype',
      value: [],
      options: [
        { value: 1, label: '护照' },
        { value: 2, label: '港澳通行证' },
        { value: 3, label: '台湾通行证' }
      ]
    },
    {
      type: 'el-input',
      required: true,
      label: '具体事由',
      prop: 'desc',
      width: '600px',
      props: {
        rows: 4,
        maxlength: '300',
        type: 'textarea',
        showWordLimit: true
      }
    },
    {
      type: 'el-select',
      default: [],
      required: true,
      label: '办理类型',
      prop: 'type',
      value: [],
      width: '600px',
      props: {
        multiple: true
      },
      options: [
        { value: 0, label: '离职' },
        { value: 1, label: '出国' },
        { value: 2, label: '签证' },
        { value: 3, label: '证件换发' },
        { value: 4, label: '其他' }
      ]
    },
    {
      type: 'el-switch',
      required: true,
      label: '是否归还',
      width: '600px',
      prop: 'isback1',
    },
    {
      type: 'el-switch',
      required: true,
      width: '600px',
      label: '是否发起休假流程',
      prop: 'isback2',
    },
    {
      type: 'el-upload',
      required: true,
      label: '上传休假申请图片',
      prop: 'isback3',
    },
    {
      type: 'list',
      required: true,
      label: '计划出行信息',
      prop: 'plainlist',
      when() {
        console.log('xxxxx')
      },
      children: [
        {
          type: 'el-date-picker',
          required: true,
          label: '时间',
          prop: 'date',
          props: {
            valueFormat: 'yyyy-MM-dd'
          }
        },
        {
          type: 'el-input',
          required: true,
          label: '前往地区',
          prop: 'phoneNo'
        }
      ]
    },
    {
      type: 'list',
      required: true,
      label: '实际出行信息',
      prop: 'reallist',
      when() {
        console.log('xxxxx')
      },
      children: [
        {
          type: 'el-date-picker',
          required: true,
          label: '时间',
          prop: 'date',
          props: {
            valueFormat: 'yyyy-MM-dd'
          }
        },
        {
          type: 'el-input',
          required: true,
          label: '前往地区',
          prop: 'phoneNo'
        },
        {
          type: 'el-upload',
          required: true,
          label: '上传休假申请图片',
          prop: 'isback',
        },
        {
          type: 'el-upload',
          required: true,
          label: '上传休假申请图片',
          prop: 'isback',
        }
      ]
    },
    {
      type: 'list',
      required: true,
      label: '签证信息',
      prop: 'actvlist',
      when() {
        console.log('xxxxx')
      },
      children: [
        {
          type: 'el-input',
          required: true,
          label: '签证地区',
          prop: 'phoneNo'
        },
        {
          type: 'el-input',
          required: true,
          label: '签证次数',
          prop: 'phoneNo'
        },
        {
          type: 'el-date-picker',
          required: true,
          label: '签证日期',
          prop: 'date',
          props: {
            valueFormat: 'yyyy-MM-dd'
          }
        },
        {
          type: 'el-input',
          required: true,
          label: '证件类型',
          prop: 'phoneNo'
        },
        {
          type: 'el-upload',
          required: true,
          label: '附件',
          prop: 'isback1',
        },
        {
          type: 'el-upload',
          required: true,
          label: '上传休假申请图片',
          prop: 'isback2',
        }
      ]
    },
    {
      type: 'el-upload',
      required: true,
      label: '员工签收单',
      prop: 'isbackliss',
    },
    {
      type: 'el-date-picker',
      required: true,
      label: '证件发放日期',
      prop: 'senddate',
      width: '600px',
      props: {
        valueFormat: 'yyyy-MM-dd'
      }
    },
    {
      type: 'el-date-picker',
      required: true,
      label: '最迟返还日期',
      prop: 'backdate',
      width: '600px',
      props: {
        valueFormat: 'yyyy-MM-dd'
      }
    }
  ]
}